package com.ruoyi.app.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;

/**
 * 活动报名对象 app_activity_reg
 *
 * @author ruoyi
 * @date 2025-03-19
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("app_activity_reg")
public class AppActivityReg extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 活动
     */
    private Long activityId;

    /**
     * 学生
     */
    private Long userId;

    /**
     * 状态0待审核,1通过,2拒绝
     */

    @Excel(name = "状态",sort = 5,readConverterExp = "0=待审核,1=通过,2=拒绝")
    private String status;


    @TableField(exist = false)
    @Excel(name = "活动名称",sort = 2)

    private String activityName;

    @TableField(exist = false)
    @Excel(name = "姓名",sort = 1)

    private String studentName;

    @TableField(exist = false)
    @Excel(name = "规则学分",sort = 4)

    private BigDecimal points;

    @TableField(exist = false)
    @Excel(name = "规则名称",sort = 3)
    private String ruleName;

    @TableField(exist = false)
    @Excel(name = "参加时间",sort = 5,dateFormat = "yyyy-MM-dd HH:mm:ss",width = 30)
    private Date createTime2;

}
